import { _decorator, SpriteFrame, Component } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('SpriteFrameObject')
export class SpriteFrameObject {
    @property([SpriteFrame])
    spriteFrameList: SpriteFrame[] = new Array();
    @property([SpriteFrame])
    bgFrameList: SpriteFrame[] = new Array();
}

@ccclass
export default class SpriteManager extends Component {
    public static Instance: SpriteManager;
    @property(SpriteFrameObject)
    spriteFrameLists: SpriteFrameObject = new SpriteFrameObject();
    onLoad() {
        SpriteManager.Instance = this;
    }
}